﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<mediatheque.Areas.Admin.Models.Oeuvres>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Tous les films
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("../Layout/admin_menu"); %>
    <ul class="breadcrumb">
        <li class="active"><a href="/Admin/Films">Tous Les films</a> <span class="divider">&raquo;</span></li>
    </ul>
    <h2>Tous les films</h2>
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                <th>#ID</th>
                <th>Titre</th>
                <th>Année</th>
                <th>Durée</th>
                <th>Résumé</th>
            </tr>
        </thead>
        <% foreach (var movie in Model.getMovies()) {  %>
        <tr>
            <td><%= movie.id%></td>
            <td><%= movie.title%></td>
            <td><%= movie.release_year%></td>
            <td><%= movie.length%> minutes</td>
            <td><%= movie.resume%></td>
            <td>
                <a href="/Admin/Films/Info/<%= movie.id %>" class="btn btn-inverse btn-mini"><i class="icon-info-sign icon-white"></i></a>
                <a href="/Admin/Films/Edit/<%= movie.id %>" class="btn btn-primary btn-mini"><i class="icon-edit icon-white"></i></a>
                <a href="/Admin/Films/Delete/<%= movie.id %>" class="btn btn-danger btn-mini"><i class="icon-remove icon-white"></i></a>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
